package com.zlzxm.sorting.usermanager;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * CREATE BY zlzxm ON 2022/8/4
 */
public class User implements Parcelable {

    private String id;
    private String appId;
    private String nickname;
    private int gender;
    private String phone;
    private String head;
    private String country;
    private String province;
    private String followCount;
    private String vipInfo;

    protected User(Parcel in) {
        id = in.readString();
        appId = in.readString();
        nickname = in.readString();
        gender = in.readInt();
        phone = in.readString();
        head = in.readString();
        country = in.readString();
        province = in.readString();
        followCount = in.readString();
        vipInfo = in.readString();
    }

    public User() {
    }

    public static final Creator<User> CREATOR = new Creator<User>() {
        @Override
        public User createFromParcel(Parcel in) {
            return new User(in);
        }

        @Override
        public User[] newArray(int size) {
            return new User[size];
        }
    };

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public int getGender() {
        return gender;
    }

    public void setGender(int gender) {
        this.gender = gender;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getHead() {
        return head;
    }

    public void setHead(String head) {
        this.head = head;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getFollowCount() {
        return followCount;
    }

    public void setFollowCount(String followCount) {
        this.followCount = followCount;
    }

    public String getVipInfo() {
        return vipInfo;
    }

    public void setVipInfo(String vipInfo) {
        this.vipInfo = vipInfo;
    }

    @Override
    public int describeContents() {
        return 0;
    }



    @Override
    public void writeToParcel(Parcel dest, int flags) {

        dest.writeString(id);
        dest.writeString(appId);
        dest.writeString(nickname);
        dest.writeInt(gender);
        dest.writeString(phone);
        dest.writeString(head);
        dest.writeString(country);
        dest.writeString(province);
        dest.writeString(followCount);
        dest.writeString(vipInfo);
    }
}
